const sales = {
  path: '/sales',
  name: 'sales',
  hidden: false,
  meta: { id: '3', title: '促销', icon: 'md-star', },
  component: resolve => require(['@/views/Base'], resolve),
  children: [{
    path: '/sales/tag',
    name: 'sales/tag',
    component: resolve => require(['@/views/sales/tag/TagList'], resolve),
    meta: {
      id: '3-1',
      title: '活动标签',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/calendar',
    name: 'sales/calendar',
    component: resolve => require(['@/views/sales/calendar/CalendarList'], resolve),
    meta: {
      id: '3-8',
      title: '活动日历',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/create',
    name: 'sales/create',
    component: resolve => require(['@/views/sales/createSales/CreateSales'], resolve),
    meta: {
      id: '3-2',
      title: '创建促销',
      active: false,
    }
  }, {
    path: '/sales/single',
    name: 'sales/single',
    hidden: true,
    component: resolve => require(['@/views/sales/singleSale/SingleSale'], resolve),
    meta: {
      id: '3-2',
      title: '单品促销',
      active: false,
    }
  }, {
    path: '/sales/single/select',
    name: 'sales/single/select',
    hidden: true,
    component: resolve => require(['@/views/sales/singleSale/SingleSaleSelect'], resolve),
    meta: {
      id: '3-2',
      title: '选择商品',
      active: false,
    }
  }, {
    path: '/sales/gift/rules',
    name: 'sales/gift/rules',
    hidden: true,
    component: resolve => require(['@/views/sales/giftSale/GiftsaleRules'], resolve),
    meta: {
      id: '3-2',
      title: '赠品促销',
      active: false,
    }
  }, {
    path: '/sales/gift/list',
    name: 'sales/gift/list',
    hidden: true,
    component: resolve => require(['@/views/sales/giftSale/GiftsaleList'], resolve),
    meta: {
      id: '3-2',
      title: '赠品促销',
      active: false,
    }
  }, {
    path: '/sales/gift/preventlist',
    name: 'sales/gift/preventlist',
    hidden: true,
    component: resolve => require(['@/views/sales/giftSale/GiftSalePreventList'], resolve),
    meta: {
      id: '3-2',
      title: '赠品促销',
      active: false,
    }
  }, {
    path: '/sales/fullsub/rules',
    name: 'sales/fullsub/rules',
    hidden: true,
    component: resolve => require(['@/views/sales/fullsubSale/FullsubRules'], resolve),
    meta: {
      id: '3-2',
      title: '满减促销',
      active: false,
    }
  }, {
    path: '/sales/fullsub/list',
    name: 'sales/fullsub/list',
    hidden: true,
    component: resolve => require(['@/views/sales/fullsubSale/FullsubList'], resolve),
    meta: {
      id: '3-2',
      title: '满减促销',
      active: false,
    }
  }, {
    path: '/sales/fullGift',
    name: 'sales/fullGift',
    hidden: true,
    component: resolve => require(['@/views/sales/fullGiftSale/FullGiftSale'], resolve),
    meta: {
      id: '3-2',
      title: '满赠促销',
      active: false,
    }
  }, {
    path: '/sales/fullGiftSale/select',
    name: 'sales/fullGiftSale/select',
    hidden: true,
    component: resolve => require(['@/views/sales/fullGiftSale/FullGiftSelect'], resolve),
    meta: {
      id: '3-2',
      title: '选择商品',
      active: false,
    }
  }, {
    path: '/sales/fullGiftSale/list',
    name: 'sales/fullGiftSale/list',
    hidden: true,
    component: resolve => require(['@/views/sales/fullGiftSale/FullGiftList'], resolve),
    meta: {
      id: '3-2',
      title: '选择商品',
      active: false,
    }
  }, {
    path: '/sales/fullSubGift',
    name: 'sales/fullSubGift',
    hidden: true,
    component: resolve => require(['@/views/sales/fullSubGiftSale/FullSubGiftSale'], resolve),
    meta: {
      id: '3-2',
      title: '满减送促销',
      active: false,
    }
  }, {
    path: '/sales/fullSubGift/select',
    name: 'sales/fullSubGift/select',
    hidden: true,
    component: resolve => require(['@/views/sales/fullSubGiftSale/FullSubGiftSaleSelect'], resolve),
    meta: {
      id: '3-2',
      title: '选择商品',
      active: false,
    }
  }, {
    path: '/sales/fullSubGift/select/gift',
    name: 'sales/fullSubGift/select/gift',
    hidden: true,
    component: resolve => require(['@/views/sales/fullSubGiftSale/FullSubGiftSaleSelectGift'], resolve),
    meta: {
      id: '3-2',
      title: '选择赠品',
      active: false,
    }
  }, {
    path: '/sales/more/rules',
    name: 'sales/more/rules',
    hidden: true,
    component: resolve => require(['@/views/sales/moreSale/MoresaleRules'], resolve),
    meta: {
      id: '3-2',
      title: '多买优惠促销',
      active: false,
    }
  }, {
    path: '/sales/more/list',
    name: 'sales/more/list',
    hidden: true,
    component: resolve => require(['@/views/sales/moreSale/MoresaleList'], resolve),
    meta: {
      id: '3-2',
      title: '多买优惠促销',
      active: false,
    }
  }, {
    path: '/sales/package',
    name: 'sales/package',
    hidden: true,
    component: resolve => require(['@/views/sales/packageSale/PackageSale'], resolve),
    meta: {
      id: '3-2',
      title: '套装促销',
      active: false,
    }
  }, {
    path: '/sales/fullReturn/rules',
    name: 'sales/fullReturn/rules',
    hidden: true,
    component: resolve => require(['@/views/sales/fullReturnSale/FullReturnRules'], resolve),
    meta: {
      id: '3-2',
      title: '满额返劵',
      active: false,
    }
  }, {
    path: '/sales/fullReturn/list',
    name: 'sales/fullReturn/list',
    hidden: true,
    component: resolve => require(['@/views/sales/fullReturnSale/FullReturnList'], resolve),
    meta: {
      id: '3-2',
      title: '满额返劵',
      active: false,
    }
  }, {
    path: '/sales/bargain/rules',
    name: 'sales/bargain/rules',
    hidden: true,
    component: resolve => require(['@/views/sales/bargain/BargainRules'], resolve),
    meta: {
      id: '3-2',
      title: '工厂特价',
      active: false,
    }
  }, {
    path: '/sales/bargain/list',
    name: 'sales/bargain/list',
    hidden: true,
    component: resolve => require(['@/views/sales/bargain/BargainSelected'], resolve),
    meta: {
      id: '3-2',
      title: '工厂特价',
      active: false,
    }
  }, {
    path: '/sales/bargain/limit',
    name: 'sales/bargain/limit',
    hidden: true,
    component: resolve => require(['@/views/sales/bargain/BargainBuyLimit'], resolve),
    meta: {
      id: '3-2',
      title: '工厂特价',
      active: false,
    }
  }, {
    path: '/sales/list',
    name: 'sales/list',
    component: resolve => require(['@/views/sales/saleList/SaleList'], resolve),
    meta: {
      id: '3-3',
      title: '已创建促销',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/detail',
    name: 'sales/detail',
    hidden: true,
    component: resolve => require(['@/views/sales/saleList/SaleDetail'], resolve),
    meta: {
      id: '3-3',
      title: '活动详情',
      active: false,
    }
  }, {
    path: '/sales/statics',
    name: 'sales/statics',
    hidden: true,
    component: resolve => require(['@/views/sales/staticsSale/staticsSale'], resolve),
    meta: {
      id: '3-3',
      title: '数据统计',
      active: false,
    }
  }, {
    path: '/sales/examine/list',
    name: 'sales/examine/list',
    component: resolve => require(['@/views/sales/examine/ExamineList'], resolve),
    meta: {
      id: '3-4',
      title: '促销审核',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/gold/edit',
    name: 'sales/gold/edit',
    component: resolve => require(['@/views/sales/gold/GoldEdit'], resolve),
    meta: {
      id: '3-6-1',
      title: '云豆设置',
      parent: '云豆',
      active: false,
    }
  }, {
    path: '/sales/gold/list',
    name: 'sales/gold/list',
    component: resolve => require(['@/views/sales/gold/GoldList'], resolve),
    meta: {
      id: '3-6-2',
      title: '云豆明细',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/lottery/edit',
    name: 'sales/lottery/edit',
    component: resolve => require(['@/views/sales/lottery/LotteryEdit'], resolve),
    meta: {
      id: '3-7-1',
      title: '抽奖设置',
      parent: '抽奖',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/lottery/info',
    name: 'sales/lottery/info',
    hidden: true,
    component: resolve => require(['@/views/sales/lottery/LotteryInfo'], resolve),
    meta: {
      id: '3-7-1',
      title: '活动设置',
      active: false,
    }
  },
  {
    path: '/sales/lottery/list',
    name: 'sales/lottery/list',
    component: resolve => require(['@/views/sales/lottery/LotteryList'], resolve),
    meta: {
      id: '3-7-2',
      title: '抽奖明细',
      parent: '抽奖',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/coupon/list',
    name: 'sales/coupon/list',
    component: resolve => require(['@/views/sales/coupon/CouponList'], resolve),
    meta: {
      id: '3-5-1',
      title: '优惠劵管理',
      parent: '优惠券',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/coupon/record',
    name: 'sales/coupon/record',
    hidden: true,
    component: resolve => require(['@/views/sales/coupon/CouponRecord'], resolve),
    meta: {
      id: '3-5-1',
      title: '领券记录',
      active: false,
    }
  }, {
    path: '/coupon/add',
    name: 'coupon/add',
    hidden: true,
    component: resolve => require(['@/views/sales/coupon/CouponAdd'], resolve),
    meta: {
      id: '3-5-1',
      title: '创建优惠券',
      active: false,
    }
  }, {
    path: '/sales/coupon/select',
    name: 'sales/coupon/select',
    hidden: true,
    component: resolve => require(['@/views/sales/coupon/CouponSelect'], resolve),
    meta: {
      id: '3-5-1',
      title: '创建优惠券',
      active: false,
    }
  }, {
    path: '/sales/coupon/goodedit',
    name: 'sales/coupon/goodedit',
    hidden: true,
    component: resolve => require(['@/views/sales/coupon/CouponEditGoods'], resolve),
    meta: {
      id: '3-5-1',
      title: '优惠券编辑商品',
      active: false,
    }
  }, {
    path: '/coupon/statics',
    name: 'coupon/statics',
    hidden: true,
    component: resolve => require(['@/views/sales/coupon/CouponStatics'], resolve),
    meta: {
      id: '3-5',
      title: '优惠券统计表',
      active: false,
    }
  }, {
    path: '/coupon/detail',
    name: 'coupon/detail',
    hidden: true,
    component: resolve => require(['@/views/sales/coupon/CouponDetail'], resolve),
    meta: {
      id: '3-5-1',
      title: '优惠券详情',
      active: false,
    }
  }, {
    path: '/sales/balance/list',
    name: 'sales/balance/list',
    component: resolve => require(['@/views/sales/balance/BalanceList'], resolve),
    meta: {
      id: '3-5-2',
      title: '优惠券结算',
      parent: '优惠券',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/coupon/summary',
    name: 'sales/coupon/summary',
    component: resolve => require(['@/views/sales/coupon/CouponStoreSummary'], resolve),
    meta: {
      id: '3-5-3',
      title: '优惠券汇总',
      parent: '优惠券',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/summary/list',
    name: 'sales/summary/list',
    hidden: true,
    component: resolve => require(['@/views/sales/coupon/summary/CouponStoreSummaryList'], resolve),
    meta: {
      id: '3-5-3',
      title: '门店优惠券使用情况汇总',
      active: false,
    }
  }, {
    path: '/sales/summary/detail',
    name: 'sales/summary/detail',
    hidden: true,
    component: resolve => require(['@/views/sales/coupon/summary/CouponStoreSummaryDetail'], resolve),
    meta: {
      id: '3-5-3',
      title: '门店优惠券使用情况汇总',
      active: false,
    }
  }, {
    path: '/sales/giftbag/list',
    name: 'sales/giftbag/list',
    component: resolve => require(['@/views/sales/giftbag/GiftBagList'], resolve),
    meta: {
      id: '3-5-4',
      title: '优惠券礼包',
      active: false,
      keepAlive: true,
    }
  }, {
    path: '/sales/giftbag/add',
    name: 'sales/giftbag/add',
    hidden: true,
    component: resolve => require(['@/views/sales/giftbag/GiftBagAdd'], resolve),
    meta: {
      id: '3-5-4',
      title: '新增优惠券礼包',
      active: false,
    }
  }, {
    path: '/sales/giftbag/info',
    name: 'sales/giftbag/info',
    hidden: true,
    component: resolve => require(['@/views/sales/giftbag/GiftBagInfo'], resolve),
    meta: {
      id: '3-5-4',
      title: '优惠券礼包详情',
      active: false,
    }
  }, {
    path: '/sales/giftbag/next',
    name: 'sales/giftbag/next',
    hidden: true,
    component: resolve => require(['@/views/sales/giftbag/GiftBagNext'], resolve),
    meta: {
      id: '3-5-4',
      title: '新增优惠券礼包',
      active: false,
    }
  }]
}

export default sales
